﻿@using StripeOne.Blog.Base.Common
@model StripeOne.Blog.Models.PostModel
<div class="accordion-group">
    <div class="accordion-heading">
        <a class="accordion-toggle" data-toggle="collapse" href="#publish">
            @AdminTranslation.Current.GetText("Posts", "Publish")</a>
    </div>
    <div id="publish" class="accordion-body collapse in">
        <div class="accordion-inner">
            <div class="row-fluid">
                <label for="selectStatus">
                    @AdminTranslation.Current.GetText("Common", "Status"):</label>
                <select id="selectStatus" name="status" class="span10">
                    <option value="1" selected="selected">@AdminTranslation.Current.GetText("PostStatus", "Draft")</option>
                    <option value="2">@AdminTranslation.Current.GetText("PostStatus", "PendingRevision")</option>
                    <option value="3">@AdminTranslation.Current.GetText("PostStatus", "Published")</option>
                </select>
            </div>
            <div class="row-fluid">
                <label for="author">
                    @AdminTranslation.Current.GetText("Common", "Author")</label>
                @*TODO: Preencher com os valores corretos e só exibir para quem tiver permissão*@
                <select id="author" name="author" class="span10">
                    <option value="1" selected="selected">Admin</option>
                    <option value="2">Autor 1</option>
                    <option value="3">Autor 2</option>
                </select>
            </div>
            <div class="row-fluid">
                <label for="inputDatepicker">
                    @AdminTranslation.Current.GetText("Common", "PublishDate"):
                </label>
                @Html.Partial("Admin/_Datepicker", Model.Datepicker)
            </div>
            <div class="row-fluid">
                @*TODO: Colocar link para mandar pra Lixeira*@ 
                <i class="icon-trash icon-mini"></i><a href="#" class="link-red">@AdminTranslation.Current.GetText("Common", "SendToTrash")</a>
            </div>
            <hr />
            <div class="row-fluid">
                <div class="pull-right">
                    <button type="submit" class="btn btn-mini btn-primary">
                        @AdminTranslation.Current.GetText("Common", "Save")</button>
                    <button type="submit" class="btn btn-mini btn-warning">
                        @AdminTranslation.Current.GetText("Posts", "Publish")</button>
                    <button class="btn btn-mini btn-danger">
                        @AdminTranslation.Current.GetText("Common", "Cancel")</button>
                </div>
            </div>
        </div>
        <!--/accordion-inner-->
    </div>
    <!--accordion-body-->
</div>
<!--accordion-group-->
<div class="accordion-group">
    <div class="accordion-heading">
        <a class="accordion-toggle" data-toggle="collapse" href="#categories">
            @AdminTranslation.Current.GetText("Common", "Categories")</a>
    </div>
    <div id="categories" class="accordion-body collapse in">
        <div class="accordion-inner">
            <div class="row-fluid scroll-pane" style="max-height: 200px;">
                @*TODO: Listar categorias*@
                <label class="checkbox">
                    <input type="checkbox" value="1" name="categories" @(Model.CommentsDisabled ? "checked=checked" : "") />
                    Categoria 1
                </label>
            </div>
            <div class="row-fluid">
                @*TODO: Ajax para incluir a categoria e adicionar já checado na lista*@
                <div class="input-append">
                    <input class="span9" size="50" type="text" name="newCategorie" />
                    <button class="btn" type="button">
                        +</button>
                </div>
            </div>
        </div>
        <!--/accordion-inner-->
    </div>
    <!--accordion-body-->
</div>
<!--accordion-group-->
<div class="accordion-group">
    <div class="accordion-heading">
        <a class="accordion-toggle" data-toggle="collapse" href="#tags">
            @AdminTranslation.Current.GetText("Common", "Tags")</a>
    </div>
    <div id="tags" class="accordion-body collapse in">
        <div class="accordion-inner">
            <div class="row-fluid">
                @*TODO: Listar tags*@
                <input class="span9" size="50" type="text" name="tags" id="inputTags" />
            </div>
        </div>
        <!--/accordion-inner-->
    </div>
    <!--accordion-body-->
</div>
<!--accordion-group-->
